package com.lingnan.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class ChatMessageDTO {
    @NotNull(message = "会话ID不能为空")
    private Long sessionId;

    @NotNull(message = "接收方ID不能为空")
    private Long receiverId;

    @NotNull(message = "接收方类型不能为空")
    private Integer receiverType; // 0求职者 3HR

    @NotBlank(message = "消息内容不能为空")
    @Size(max = 2000, message = "消息内容过长")
    private String content;

    private String fileUrl; // 文件/图片URL
    private Integer msgType = 1; // 1文本 2图片 3文件
}
